package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
     new MyThread1().start();
     new MyThread2().start();
    }
}

/**
 *
 */
class MyThread1 extends Thread{
    @Override
    public void run(){
        for (int i = 0; i < 1000; i++){
            System.out.println("你谁呀" + i);
        }
    }
}
class MyThread2 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("查水表的" + i);
        }
    }
}